// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './logic-0007-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizordername', 'ibizuniproductname', 'unit', 'unitprice', 'quantity', 'amount', 'ibizorderid', 'ibizuniproductid', 'ibizorderdetailid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizorderdetailid;
    }
    set srfkey(value: any) {
        this.$DO.ibizorderdetailid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizorderdetailname;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizorderdetailname = value;
    }
    get ibizordername() {
        return this.$DO.ibizordername;
    }
    set ibizordername(value: any) {
        this.$DO.ibizordername = value;
    }
    get ibizuniproductname() {
        return this.$DO.ibizuniproductname;
    }
    set ibizuniproductname(value: any) {
        this.$DO.ibizuniproductname = value;
    }
    get unit() {
        return this.$DO.unit;
    }
    set unit(value: any) {
        this.$DO.unit = value;
    }
    get unitprice() {
        return this.$DO.unitprice;
    }
    set unitprice(value: any) {
        this.$DO.unitprice = value;
    }
    get quantity() {
        return this.$DO.quantity;
    }
    set quantity(value: any) {
        this.$DO.quantity = value;
    }
    get amount() {
        return this.$DO.amount;
    }
    set amount(value: any) {
        this.$DO.amount = value;
    }
    get ibizorderid() {
        return this.$DO.ibizorderid;
    }
    set ibizorderid(value: any) {
        this.$DO.ibizorderid = value;
    }
    get ibizuniproductid() {
        return this.$DO.ibizuniproductid;
    }
    set ibizuniproductid(value: any) {
        this.$DO.ibizuniproductid = value;
    }
    get ibizorderdetailid() {
        return this.$DO.ibizorderdetailid;
    }
    set ibizorderdetailid(value: any) {
        this.$DO.ibizorderdetailid = value;
    }
    // 界面主键标识
    get ibizorderdetail() {
        return this.$DO.ibizorderdetailid;
    }

    set ibizorderdetail(value: any) {
        this.$DO.ibizorderdetailid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizordername: this.$DO.ibizordername,
ibizuniproductname: this.$DO.ibizuniproductname,
unit: this.$DO.unit,
unitprice: this.$DO.unitprice,
quantity: this.$DO.quantity,
amount: this.$DO.amount,
updatedate: this.$DO.updatedate,
ibizorderdetailid: this.$DO.ibizorderdetailid,
ibizorderdetailname: this.$DO.ibizorderdetailname,
        }
	}

}